package com.woniu.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.user.controller.form.SearchForm;
import com.woniu.user.model.Book;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 预约信息表 服务类
 * </p>
 *
 * @author Silas
 * @since 2023-02-15
 */
public interface BookService extends IService<Book> {

    IPage<Book> searchMy(String condition, Integer userId, Integer current, Integer size);

    void refuse(Integer bookId, String message);

    void access(Integer bookId);

    List<Book> find(String date);

    IPage<Book> getMyBook(Integer userId, Page<Book> bookPage);

    void del(Integer bookId, Integer userId);

    IPage<Book> search(SearchForm form, Integer userId);
}
